home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / EmptyBorder.java < prev    next >
Text File  |  1998-04-21  |  592b  |  31 lines

  1. package com.symantec.itools.swing.borders;
  2.  
  3. import java.awt.Insets;
  4.  
  5. public class EmptyBorder
  6.     extends com.sun.java.swing.border.EmptyBorder
  7.     implements java.io.Serializable
  8. {
  9.     public EmptyBorder()
  10.     {
  11.         super(0,0,0,0);
  12.     }
  13.     
  14.     //
  15.     // Properties
  16.     //
  17.     
  18.     public Insets getInsets()
  19.     {
  20.         return new Insets(top,left,bottom,right);
  21.     }
  22.     
  23.     public void setInsets(Insets newInsets)
  24.     {
  25.         top = newInsets.top;
  26.         left = newInsets.left;
  27.         bottom = newInsets.bottom;
  28.         right = newInsets.right;
  29.     }
  30. }
  31.